{extend name="../../base/view/layout" /}
{block name="my_body"}
<div class="widgetbox box-inverse">
    <div class="widgetcontent wc1">

        <form id="form1" class="stdform" enctype="multipart/form-data" method="post" action="<?php echo url('sys/Index/info');?>">

            <div class="tabbable">
                <ul class="nav nav-tabs buttons-icons">
                    <li class="active"><a data-toggle="tab" href="#shop_info"><?php echo $_page_title;?></a></li>
                </ul>
                <div class="tab-content">
                    <div id="shop_info" class="tab-pane active">

                        <div class="par control-group">
                            <label class="control-label" for="title">站点标题</label>
                            <div class="controls"><input type="text" name="title" id="title" class="input-xlarge" value="<?php echo $data['title'];?>" /></div>
                        </div>

                        <div class="par control-group">
                            <label class="control-label" for="dmname">域名</label>
                            <div class="controls"><input type="text" name="dmname" id="dmname" class="input-xlarge" value="<?php echo $data['dmname'];?>" /></div>
                        </div>

                        <div class="par control-group">
                            <label class="control-label" for="email">邮箱</label>
                            <div class="controls"><input type="text" name="email" id="email" class="input-xlarge" value="<?php echo $data['email'];?>" /></div>
                        </div>
                        <div class="par control-group">
                            <label class="control-label" for="linkman">联系人</label>
                            <div class="controls"><input type="text" name="linkman" id="linkman" class="input-xlarge" value="<?php echo $data['linkman'];?>" /></div>
                        </div>
                        <div class="par control-group">
                            <label class="control-label" for="tel">企业电话</label>
                            <div class="controls"><input type="text" name="tel" id="tel" class="input-xlarge" value="<?php echo $data['tel'];?>" /></div>
                        </div>
                        <div class="par control-group">
                            <label class="control-label" for="fax">企业传真</label>
                            <div class="controls"><input type="text" name="fax" id="fax" class="input-xlarge" value="<?php echo $data['fax'];?>" /></div>
                        </div>

                        <div class="par control-group">
                            <label class="control-label" for="qq">客服QQ</label>
                            <div class="controls"><input type="text" name="qq" id="qq" class="input-xlarge" value="<?php echo $data['qq'];?>" /></div>
                        </div>

                        <div class="par control-group">
                            <label class="control-label" for="beian">备案信息</label>
                            <div class="controls"><input type="text" name="beian" id="beian" class="input-xlarge" value="<?php echo $data['beian'];?>" /></div>
                        </div>

                        <div class="par control-group">
                            <label class="control-label" for="comname">公司名称</label>
                            <div class="controls"><input type="text" name="comname" id="comname" class="input-xlarge" value="<?php echo $data['comname'];?>" /></div>
                        </div>




                        <div class="par control-group">
                            <label class="control-label" for="address">企业地址</label>
                            <div class="controls"><input type="text" name="address" id="address" class="input-xlarge" value="<?php echo $data['address'];?>" /></div>
                        </div>
                        <div class="par control-group">
                            <label class="control-label" for="keywords">关键字</label>
                            <div class="controls"><textarea name="keywords" id="keywords" rows="5" class="input-xlarge"  ><?php echo $data['keywords'];?></textarea></div>
                        </div>

                        <div class="par control-group">
                            <label class="control-label" for="description">描述</label>
                            <div class="controls"><textarea name="description" id="description" rows="5" class="input-xlarge" ><?php echo $data['description'];?></textarea></div>
                        </div>


                        <div class="control-group par">
                            <label class="control-label" for="logo">站点Logo</label>
                            <div class="controls"><input type="file" name="logo" id="logo" class="input-xlarge"  /></div>
                        </div>

                        <?php if(!empty($data['logo'])):?>
                        <div class="control-group par">
                            <label class="control-label"></label>
                            <div class="controls"><?php showImage($data['logo']);?></div>
                        </div>
                        <?php endif;?>

                        <div class="control-group par">
                            <label class="control-label">是否关闭站点</label>
                            <div class="controls">
                                <input type="radio" name="is_close"  class="input-xlarge" value="否" <?php if($data['is_close'] == '否') echo 'checked';?>  />否
                                <input type="radio" name="is_close"  class="input-xlarge" value="是" <?php if($data['is_close'] == '是') echo 'checked';?> />是
                            </div>
                        </div>

                    </div><!--tab-pane-->

                </div><!--tabcontent-->
            </div><!--tabbable-->


            <p class="stdformbutton">
                <input type="submit" class="btn btn-primary" />
            </p>
        </form>
    </div><!--widgetcontent-->
</div><!--widget-->
{/block}

{block name="my_js"}
{/block}